home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Telephone Manager / Stiletto Sources / Headers / ModuleWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-05  |  2.5 KB  |  86 lines  |  [TEXT/MPS ]

  1. /************************************************************************************************/
  2. /*                                                                                                */
  3. /*    Program Name:    Stiletto                                                                    */
  4. /*                                                                                                */
  5. /*    File Name:        ModuleWindow.h                                                                */
  6. /*                                                                                                */
  7. /*    © Apple Computer, Inc. 1991-1995                                                            */
  8. /*    All Rights Reserved                                                                            */
  9. /*                                                                                                */
  10. /*    Revision History:                                                                            */
  11. /*                                                                                                */
  12. /*        Date        Who                    Modification                                            */
  13. /*                                                                                                */
  14. /*        1991-08-17    Chris Halim            Original version                                        */
  15. /*        1995-06-26    Jaakko Railo        Version 2.0                                                */
  16. /*                                                                                                */
  17. /************************************************************************************************/
  18.  
  19. /****************************************** DESCRIPTION ******************************************
  20.  
  21. *************************************************************************************************/
  22.  
  23. /************************************************************************************************/
  24. /************************************************************************************************/
  25.  
  26.  
  27. #ifndef    __MODULEWINDOW__
  28. #define    __MODULEWINDOW__
  29.  
  30.  
  31. #ifndef __ALIASES__
  32. #include "Aliases.h"
  33. #endif
  34.  
  35. #ifndef __DIALOGS__
  36. #include "Dialogs.h"
  37. #endif
  38.  
  39. #ifndef __EVENTS__
  40. #include "Events.h"
  41. #endif
  42.  
  43. #ifndef __LISTS__
  44. #include "Lists.h"
  45. #endif
  46.  
  47.  
  48. #if defined(powerc) || defined (__powerc)
  49. #pragma options align=mac68k
  50. #endif
  51. struct ModuleWindowRec {
  52.     WindowRecord    fWindowRecord;
  53.     ListHandle        fNameList;                // list manager record containing test names
  54.     AliasHandle        fTestDirAlias;            // alias to the main test directory
  55. };
  56. #if defined(powerc) || defined(__powerc)
  57. #pragma options align=reset
  58. #endif
  59.  
  60. typedef struct ModuleWindowRec ModuleWindowRec;
  61.  
  62. typedef ModuleWindowRec *ModuleWindowPtr;
  63.  
  64.  
  65. #ifdef __cplusplus
  66. extern "C" {
  67. #endif
  68.  
  69.  
  70. short            CreateModuleWindow (ModuleWindowPtr * moduleWindow, const Rect * windowRect);
  71. void            DisposeModuleWindow (ModuleWindowPtr moduleWindow);
  72. Boolean            IsHandledByModuleWindow (ModuleWindowPtr moduleWindow, const EventRecord * theEvent);
  73. OSErr            CreateNameList (ModuleWindowPtr moduleWindow); 
  74. pascal Boolean    GetDirModalFilter (DialogPtr theDialog, EventRecord* theEvent, short* itemHit,  Ptr data);
  75. pascal short    GetDirDialogHook (short item, DialogPtr theDialog, Ptr data);
  76. AliasHandle        GetNewTestDirAlias (ModuleWindowPtr moduleWindow);
  77.  
  78.  
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82.  
  83. #endif  /* __MODULEWINDOW__ */
  84.  
  85.  
  86.